package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 权限实体类
 * 
 * @author tengyicheng
 * @version [1.0, 2013/09/23]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Entity
@Table(name = "rk_privilege")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class PrivilegeDto  extends BaseDto { 
	private static final long serialVersionUID = 1L;
	
	private Integer privilegeId;			//权限id
	private String privilegeName;			//权限名称
	private String privilegeKey;			//操作权限
	private String remark;					//备注
	private Integer status;					//是否有效
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "privilege_id", unique = true, nullable = false)
	public Integer getPrivilegeId() {
		return privilegeId;
	}
	public void setPrivilegeId(Integer privilegeId) {
		this.privilegeId = privilegeId;
	} 
	
	@Column(name = "privilege_name")
	public String getPrivilegeName() {
		return privilegeName;
	}
	public void setPrivilegeName(String privilegeName) {
		this.privilegeName = privilegeName;
	}
	
	@Column(name = "privilege_key")
	public String getPrivilegeKey() {
		return privilegeKey;
	}
	public void setPrivilegeKey(String privilegeKey) {
		this.privilegeKey = privilegeKey;
	}
	
	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
